<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Nav</title>
<style>

body {
	font: 14px/1.6 Consolas,verdana,tahoma,arial,宋体b8b\4f53,sans-serif;
}

nav {
	width: 650px;
	margin: 0 auto;
	padding: 100px 0;
	overflow: auto;
	border: 1px solid #ccc;
}

.navlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.navlist li {
	float: left;
	width: 150px;
	text-align: center;
	display: inline;
	position: relative;
	
	-moz-transition: all .5s ease-in-out;
	-webkit-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	-ms-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
}


.navlist li a {
	display: block;
	width: 100%;
	margin: 5px 8px 0 8px;
	padding: 5px 8px 5px;
	color: white;
	font-size: 18px;
	text-decoration: none;
	text-transform: uppercase;
	
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
	border-radius: 10px;
}

.navlist-home a {
	background-color: #ED2024;
}

.navlist-tutorials a {
	background-color: #FB9500;
}

.navlist-articles a {
	background-color: #8DC434;
}

.navlist-others a {
	background-color: #7674AB;
}

#nav1 .navlist li:hover, 
#nav1 .navlist li.cur {
	z-index: 99;
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

#nav2 .navlist li {
	-webkit-transform: rotate(-30deg);
	-moz-transform: rotate(-30deg);
	-ms-transform: rotate(-30deg);
	-o-transform: rotate(-30deg);
	transform: rotate(-30deg);
}

#nav2 .navlist li:hover {
	z-index: 99;
	-webkit-transform: rotate(30deg);
	-moz-transform: rotate(30deg);
	-ms-transform: rotate(30deg);
	-o-transform: rotate(30deg);
	transform: rotate(30deg);
}

#nav3 .navlist li {
	-webkit-transform: rotate(-20deg);
	-moz-transform: rotate(-20deg);
	-ms-transform: rotate(-20deg);
	-o-transform: rotate(-20deg);
	transform: rotate(-20deg);
}

#nav3 .navlist li.navlist-tutorials,
#nav3 .navlist li.navlist-others {
	-webkit-transform: rotate(20deg);
	-moz-transform: rotate(20deg);
	-ms-transform: rotate(20deg);
	-o-transform: rotate(20deg);
	transform: rotate(20deg);
}

#nav3 .navlist li:hover {
	z-index: 99;
	-webkit-transform: rotate(720deg);
	-moz-transform: rotate(720deg);
	-ms-transform: rotate(720deg);
	-o-transform: rotate(720deg);
	transform: rotate(720deg);
}

#nav3 .navlist li.navlist-tutorials:hover,
#nav3 .navlist li.navlist-others:hover {
	z-index: 99;
	-webkit-transform: rotate(-720deg);
	-moz-transform: rotate(-720deg);
	-ms-transform: rotate(-720deg);
	-o-transform: rotate(-720deg);
	transform: rotate(-720deg);
}

</style>
</head>
<body>

<h1>Navigation Transition</h1>

<nav id="nav1">
	<ul class="navlist">
		<li class="navlist-home cur"><a href="">Home</a></li>
		<li class="navlist-tutorials"><a href="">Tutorials</a></li>
		<li class="navlist-articles"><a href="">Articles</a></li>
		<li class="navlist-others"><a href="">Others</a></li>
	</ul>
</nav>

<nav id="nav2">
	<ul class="navlist">
		<li class="navlist-home cur"><a href="">Home</a></li>
		<li class="navlist-tutorials"><a href="">Tutorials</a></li>
		<li class="navlist-articles"><a href="">Articles</a></li>
		<li class="navlist-others"><a href="">Others</a></li>
	</ul>
</nav>

<nav id="nav3">
	<ul class="navlist">
		<li class="navlist-home cur"><a href="">Home</a></li>
		<li class="navlist-tutorials"><a href="">Tutorials</a></li>
		<li class="navlist-articles"><a href="">Articles</a></li>
		<li class="navlist-others"><a href="">Others</a></li>
	</ul>
</nav>

</body>
</html>